<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>后台</title>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
	<div class="container-fluid">
		<jsp:include page="./top.jsp" />
		<div class="row">
			<div class="col-md-2">
				<jsp:include page="./left.jsp" />
			</div>
			<div class="col-md-10">
				<%
					String item = request.getParameter("item");
					if (item == null || item.equals("")) {
				%>
				<%@ include file="./welcome.jsp" %>
				<%
					}
					if (item != null && item.equals("product_add")) {
				%>
				<%@ include file="../products/add.jsp" %>
				<%
					}
					if (item != null && item.equals("product_list")) {
				%>
				<%@ include file="../products/list.jsp" %>
				<%
					}
					if (item != null && item.equals("product_download")) {
				%>
				<%@ include file="../products/download.jsp" %>
				<%
					}
					if (item != null && item.equals("orders")) {
				%>
				<%@ include file="../products/orderList.jsp" %>
				<%
					}
					if (item != null && item.equals("view")) {
				%>
				<%@ include file="../products/orderView.jsp" %>
				<%
					}
					if (item != null && item.equals("product_edit")) {
				%>
				<%@ include file="../products/edit.jsp" %>
				<%
					}
					if (item != null && item.equals("notices")) {
				%>
				<%@ include file="../products/noticeList.jsp" %>
				<%
					}
					if (item != null && item.equals("notice_add")) {
				%>
				<%@ include file="../products/addNotice.jsp" %>
				<%
					}
					if (item != null && item.equals("notice_edit")) {
				%>
				<%@ include file="../products/editNotice.jsp" %>
				<%
					}
					if (item != null && item.equals("user_list")) {
				%>
				<%@ include file="../user/list.jsp" %>
				<%
					}
					if (item != null && item.equals("user_address")) {
				%>
				<%@ include file="../user/address.jsp" %>
				<%
					}
					if (item != null && item.equals("user_collection")) {
				%>
				<%@ include file="../user/collection.jsp" %>
				<%
					}
					if (item != null && item.equals("banner")) {
				%>
				<%@ include file="../banner/list.jsp" %>
				<%
					}
					String value = request.getParameter("forward");
					if (value != null) {
						out.print("<div class='well'>这是使用 jsp：forward 从  " + value + " 页面跳转过来的~</div>");
					}
				%>
			</div>
		</div>
		<jsp:include page="./bottom.jsp" />
	</div>
</body>
</html>